package com.hgyc.mom.system.controller;


import com.hgyc.mom.common.vo.Result;
import com.hgyc.mom.system.service.SysRoleMenuService;
import com.hgyc.mom.system.vo.RoleMenuVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统角色菜单信息 前端控制器
 * </p>
 *
 * @author fwj
 * @since 2025-01-16
 */
@RestController
@RequestMapping("/sys/roleMenu")
public class SysRoleMenuController {

    @Autowired
    private SysRoleMenuService sysRoleMenuService;

    @RequestMapping(value = "/updateRoleMenu", method = RequestMethod.POST)
    public Result<?> updateRoleMenu(@RequestBody RoleMenuVO roleMenuVO) {
        sysRoleMenuService.updateRoleResource(roleMenuVO);
        return Result.success("保存成功");
    }

}
